import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

const login      = () => import('@/components/login');  //首页
const ding      = () => import('@/components/ding');  //首页
const camera      = () => import('@/components/camera');  //首页
const index      = () => import('@/components/index');  //首页
const success      = () => import('@/components/success');  //首页

Vue.use(Router)
let routeBasePath = process.env.NODE_ENV == 'development' ? '' : '/dingLogin/dist/';
export default new Router({
    base: routeBasePath,
    mode: 'history',
    routes: [
    	{
	        path: '/',
	        name: 'HelloWorld',
	        component: HelloWorld
	    },
	    {
	        path: '/login',
	        name: 'login',
	        component: login
	    },
	    {
	        path: '/ding',
	        name: 'ding',
	        component: ding
	    },
	    {
	        path: '/camera',
	        name: 'camera',
	        component: camera
	    },
	    {
	        path: '/index',
	        name: 'index',
	        component: index
	    },
	    {
	        path: '/success',
	        name: 'success',
	        component: success
	    },
    ]
})